#!/bin/bash
# getting just one character of input
# 
read -n1 -p "Do you want to continue [Y/N] ?" answer
echo
case $answer in 
    Y | y) 
        echo "Fine, continue on..."
        ;;
    N | n) 
        echo "Ok goodbye"
        exit 1
        ;;
    *)
        echo "command not found"
        ;;
esac
echo "This is the end of the scripts."
